// BmpImage.h: interface for the BmpImage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BMPIMAGE_H__EC77690D_8546_11D2_A42D_006097A44215__INCLUDED_)
#define AFX_BMPIMAGE_H__EC77690D_8546_11D2_A42D_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Image.h"
#include "FILEBMP.h"

class CLASS_DECL_D BmpImage : public Image  
{
DECLARE_DYNAMIC(BmpImage)
public:
	BmpImage();
	BmpImage(LPTSTR file);
	BmpImage(CString& file);
	virtual ~BmpImage();

	virtual void paint(CDC* pDC, AWTCanvas* canvas);
	virtual CSize getSize();
	virtual BOOL loadImage();
	virtual BOOL isValid()
		{return (m_hbmp != NULL);}

private:
	void construct(CString& file)
	{
		m_hbmp = NULL;
		loadImage();
	}	

protected:

	HFILEBITMAP m_hbmp;
};

#endif // !defined(AFX_BMPIMAGE_H__EC77690D_8546_11D2_A42D_006097A44215__INCLUDED_)
